#ifndef ELFHEADERWIDGET_H
#define ELFHEADERWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QGridLayout>
#include <elf_common.h>
class ELFHeaderWIdget : public QWidget
{
    Q_OBJECT
public:
    explicit ELFHeaderWIdget(QWidget *parent = nullptr);
    void updateData(ELF_HEADER elf_header);
private:
    void intiUI();
    QLabel *labMagicNumber;
    QLabel *labObjectFileTyoe;
    QLabel *labArchitecture;
    QLabel *labObjectFileVersion;
    QLabel *labEntryPointVirtualAddress;
    QLabel *labProgramHeaderOffset;
    QLabel *labSectionHeaderOffset;
    QLabel *labProcessorSpecificFlags;
    QLabel *labElfHeaderSize;
    QLabel *labProgramHeaderSize;
    QLabel *labProgramHeaderNumber;
    QLabel *labSectionHeaderSize;
    QLabel *labSectionHeaderNumber;
    QLabel *labSectionHeaderStringTableIndex;
    QLineEdit *editMagicNumber;
    QLineEdit *editObjectFileTyoe;
    QLineEdit *editArchitecture;
    QLineEdit *editObjectFileVersion;
    QLineEdit *editEntryPointVirtualAddress;
    QLineEdit *editProgramHeaderOffset;
    QLineEdit *editSectionHeaderOffset;
    QLineEdit *editProcessorSpecificFlags;
    QLineEdit *editElfHeaderSize;
    QLineEdit *editProgramHeaderSize;
    QLineEdit *editProgramHeaderNumber;
    QLineEdit *editSectionHeaderSize;
    QLineEdit *editSectionHeaderNumber;
    QLineEdit *editSectionHeaderStringTableIndex;
    QGridLayout *mainLayout;
signals:

};

#endif // ELFHEADERWIDGET_H
